package com.lzy.elasticserch.mapping;

import com.lzy.elasticserch.config.IndexMappingConfig;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 默认的映射
 *
 */
public class DefaultIndexMapping implements IndexMapping {
    @Autowired
    private IndexMappingConfig.IndexMappingManage indexMappingManage;

    @Override
    public String mapping(String schemaName, String tableName) {
        return indexMappingManage.getIndex(schemaName, tableName);
    }

}
